home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / knowhow4 / textmenu.h < prev    next >
C/C++ Source or Header  |  1994-10-10  |  1KB  |  32 lines

  1. #ifndef __TEXT_MENU_H_
  2. #define __TEXT_MENU_H_
  3.  
  4. #include "choicebx.h"
  5.  
  6. class TextMenu : public ChoiceBox
  7.     {
  8.     public:
  9.     TextMenu(rect coordinates, char* fName = "", char* h = "",
  10.            char* HOT = NULL, int POS = 1, int START = 1,
  11.            char** ITEMSTRINGS = NULL,
  12.            rect STATUSPOS = rect(0, 24, 79, 25),
  13.            int STATUSTYPE = 0, char** STATUSSTRINGS = NULL,
  14.            int* STATUSLIST = NULL,
  15.            int res = FIXED, int s = 3, BORDERS b_type = SHOW_BORDER,
  16.            BORDERS hdr_b_type = SHOW_BORDER, int pat = 0,
  17.            int hdr_pat = 0)
  18.         : ChoiceBox(coordinates, fName, h, HOT, POS, START,
  19.            loc(1, 1), ITEMSTRINGS, NULL, loc(2, 0), STATUSPOS,
  20.            STATUSTYPE, STATUSSTRINGS, STATUSLIST, res, s, b_type,
  21.            hdr_b_type, pat, hdr_pat)
  22.            {
  23.            calcConsts();
  24.            }
  25.  
  26.     void set_pos(int p) { pos = p; }
  27.     void setItems();  // sets new list of menu positions
  28.     virtual void calcItemsNumber();
  29.     virtual void showItem();
  30.     };
  31.  
  32. #endif __TEXT_MENU_H_